home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 090 / byt85mar.lbr / STUMP1.PAS < prev    next >
Pascal/Delphi Source File  |  1985-09-15  |  512b  |  35 lines

  1.  
  2.  
  3. Listing 1: BYTE disk write benchmark in Turbo Pascal.
  4.  
  5. { copywrited 1984 by Laine Stump.  For private, non-commercial use only }
  6.  
  7. PROGRAM write (output, outfile);
  8.  
  9. CONST
  10.     a  = '12345678123456781234567812345678';
  11.     nr = 512;
  12.  
  13. VAR
  14.     outfile : text;
  15.  
  16.     b : string[128];
  17.     i : integer;
  18.  
  19. begin
  20. b := a+a+a+a;
  21. assign (outfile, 'b:test');
  22. rewrite (outfile);
  23. FOR i := 1 to nr DO
  24.     write (outfile, b);
  25. close (outfile);
  26. writeln ('done');
  27. end. { write }
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.